%@LANGUAGE="VBSCRIPT"%> <%Option Explicit%> <% Function GetSecureVal(param) If IsEmpty(param) Or param = "" Then GetSecureVal = param Exit Function End If If IsNumeric(param) Then GetSecureVal = CLng(param) Else GetSecureVal = Replace(CStr(param), "'", "''") End If End Function Dim ID ID = GetSecureVal(UCase(Request.QueryString("ID"))) Dim sScriptName sScriptName = Request.ServerVariables("SCRIPT_NAME") Dim quote quote = chr(34) Dim iPageNum, iRowsPerPage If Request.QueryString("iPageNum") = "" Then iPageNum = 1 Else iPageNum = Request.QueryString("iPageNum") iPageNum = CInt(iPageNum) End If iRowsPerPage = 10 Dim cnn set cnn = Server.CreateObject("ADODB.CONNECTION") cnn.ConnectionString = conn_shan cnn.Open Function GetRecords(sSQL) Dim rst Set rst = Server.CreateObject("ADODB.RECORDSET") set rst.ActiveConnection = cnn rst.CursorType = 3 rst.CursorLocation = 3 rst.LockType = 3 rst.Open sSQL ',adOpenStatic, adLockReadOnly Set GetRecords = rst END Function Sub WriteTableBody(rst, iRowsPerPage, iPageNum) Dim iLoop Dim fld Dim TRField1, TRField2, swap TRField1 = "
" If (iPageNum - 1) < 1 Then Response.Write " | <<First | " Response.Write "<Previous | " Else Response.Write "<<First | " Response.Write "<Previous | " End If Response.Write "Page " & iPageNum & " of " & iPageCount & " | " Response.Write "" If (iPageNum +1) > iPageCount Then Response.Write " | Next> | " Response.Write "Last>> | " Else Response.Write "Next> | " Response.Write "Last>> | " End If Response.Write "
![]() |
|||||||||
Pathway
Crosstalk
Database
|
|||||||||
![]() |
|||||||||
![]() ![]() ![]() |
|||||||||
Browse PCDRecords related with: <%=Server.HTMLEncode(ID)%> <% If rst.PageCount>1 Then ShowNavBar(rst) end if Else 'If cannot find any data Response.Write " Sorry, no matches found.
Please
kindly sign our Guest book, or report
any bugs to liuxin@nus.edu.sg . Prof.
Chen Yuzong
|
|||||||||
![]() |
|||||||||
|
|||||||||
Department
of Computational Science | National University of Singapore | Blk S17,
3 Science Drive 2, Singapore 117543
|